import { createParamDecorator } from "@nestjs/common";

// 自定义一个 CurrentUser 装饰器
export const CurrentUser = createParamDecorator((data,req)=> req.user)